Object.prototype.hasOwnProperty() hasOwnProperty() 方法会返回一个布尔值,指示对象自身属性中是否具有指定的属性 prop 要检测的属性 字符串 名称 ...